home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 2010 April
/
PCWorld0410.iso
/
pluginy Firefox
/
56118
/
56118.xpi
/
chrome
/
content
/
ffbccthis
/
win
/
ffbccthisOverlay.xul
Wrap
Extensible Markup Language
|
2010-02-03
|
2KB
|
52 lines
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://ffbccthis/skin/ffbccthisOverlay.css" type="text/css"?>
<overlay id="bccthis-mozilla-extension" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<!-- our mac clipping javascript code -->
<script type="application/x-javascript" src="chrome://ffbccthis/content/bccthis.js"/>
<!-- common function to put the button in the toolbar the first go-round -->
<script type="application/x-javascript" src="chrome://ffbccthis-common/content/toolbar-button-init.js"/>
<script type="application/x-javascript">
<![CDATA[
function ClickBccthis(event) {
if (event.button == 0) {
var d=content.document;
var w=window;
var f='http://bccth.is/bookmarklet/index.php?';
var l=d.location;
var e=encodeURIComponent;
var p='address='+e(l.href)+'&title='+e(d.title);
var u=f+p;
var br = document.getElementById("content");
var wnd = null;
if (br == null || !br.selectedTab)
wnd = document.commandDispatcher.focusedWindow;
else
wnd = br.getBrowserForTab(br.selectedTab).docShell
.QueryInterface(Components.interfaces.nsIInterfaceRequestor)
.getInterface(Components.interfaces.nsIDOMWindow);
var ww = Components.classes["@mozilla.org/embedcomp/window-watcher;1"]
.getService(Components.interfaces.nsIWindowWatcher);
var win = ww.openWindow(wnd, u, null, "scrollbars=no,toolbar=no,location=no,resizable=no,status=no,width=590,height=610,chrome=yes,centerscreen,dialog=yes", null);
}
return true;
}
]]>
</script>
<!-- our Firefox toolbar button -->
<toolbarpalette id="BrowserToolbarPalette">
<toolbarbutton id="bccwebclipper3-button" label="Bccth.is"
class="bccwebclipper3-button toolbarbutton-1"
tooltiptext="Tweet this page with Bccthis"
onclick="return ClickBccthis(event);" />
</toolbarpalette>
</overlay>